<template>
<view class='uni-icon' :style='style' />
</template>

<script setup lang="ts">
  import { IconProps } from '../props'
  import { useIconfont } from '../useIconfont'
  import { computed } from 'vue'
  const props = defineProps(IconProps)
  const {
  colors,
  svgSize,
  quot,
  isStr,
  } = useIconfont(props)
  const style = computed(() => {
      return `background-image: url(${quot.value}data:image/svg+xml, %3Csvg viewBox='0 0 1820 1024' xmlns='http://www.w3.org/2000/svg' width='${svgSize.value}px' height='${svgSize.value}px'%3E%3Cpath d='M1214.037333 317.402074c-4.427852 208.355556-236.35437 376.225185-521.803852 376.225185-37.461333 0-74.002963-2.891852-109.236148-8.381629l0.009482-301.416297c0-36.683852 29.743407-66.417778 66.427259-66.417777h564.603259z m0 0' fill='${(isStr.value ? colors.value : colors.value[0]) || 'rgb(255,84,0)'}' /%3E%3Cpath d='M687.881481 493.37837v-78.411851h18.147556v85.674666c0.967111 5.812148 2.901333 13.321481 5.812148 22.509037 2.901333 9.197037 5.082074 15.739259 6.532741 19.607704 3.384889 9.680593 7.006815 16.45037 10.894222 20.328296-15.976296 0.967111-24.206222-2.180741-24.689778-9.434074-0.976593-2.901333-2.180741-6.532741-3.631407-10.894222-1.450667-3.384889-2.427259-6.532741-2.901333-9.434074-0.976593 1.943704-1.943704 4.352-2.901334 7.262815-1.943704 3.868444-3.631407 8.220444-5.082074 13.065481-2.901333 8.220444-11.870815 11.368296-26.861037 9.434074 4.835556-6.295704 8.713481-13.065481 11.614815-20.328296 9.187556-23.713185 13.539556-40.182519 13.065481-49.379556z m-6.53274 25.410371h-14.52563V394.638222h14.52563v8.713482c0.967111-5.812148 4.835556-8.713481 11.614815-8.713482h17.426963c10.638222 0 15.976296 6.779259 15.976296 20.328297V518.068148h-13.795556V416.417185c0.474074-11.131259-3.157333-16.213333-10.894222-15.246222h-10.164148c-5.328593 0-8.713481 3.157333-10.164148 9.434074v108.183704z m72.599703-29.762371h-21.778963v-74.059851h21.778963v13.795555c0.474074-8.713481 5.556148-13.065481 15.246223-13.065481h43.567407c14.52563-0.474074 21.532444 6.058667 21.05837 19.607703v33.40326c0 14.042074-5.575111 20.574815-16.696888 19.607703h-47.919408c-9.690074 0.483556-14.772148-2.417778-15.246222-8.713481v9.424592z m5.812149 71.879111h-23.22963v-63.895703h23.22963v10.164148c0.474074-5.812148 5.082074-8.713481 13.795555-8.713482h36.304593c14.999704-0.967111 22.016 4.845037 21.05837 17.426963v26.861037c1.450667 12.581926-6.058667 18.394074-22.509037 17.426963H772.835556c-7.74637 0-12.107852-2.901333-13.065482-8.713481v9.443555zM740.882963 390.276741h26.140444c2.901333 10.657185 7.499852 17.426963 13.795556 20.328296-25.173333 1.943704-37.518222-1.687704-37.025185-10.894222-0.483556-0.967111-0.976593-2.417778-1.450667-4.352-0.986074-1.924741-1.460148-3.631407-1.460148-5.082074z m13.065481 42.837333v39.936c0.967111 5.812148 4.105481 8.476444 9.434075 7.983407h9.443555v-58.083555h-2.180741c-10.154667-0.474074-15.729778 2.901333-16.696889 10.164148z m5.091556 25.41037v-27.591111h8.713481v27.591111c-0.483556 6.295704 0.967111 10.410667 4.352 12.344889-8.713481 0.976593-13.065481-3.13837-13.065481-12.344889z m0.720593 53.731556v13.065481h47.189333v-10.894222c0-6.286222-3.39437-9.434074-10.164148-9.434074H770.654815c-5.812148-0.474074-9.443556 1.943704-10.894222 7.262815z m47.198814 30.492444v-10.894222h-47.189333v13.795556c0.967111 5.319111 4.598519 7.983407 10.894222 7.983407h27.591111c5.793185 0.009481 8.704-3.621926 8.704-10.884741z m-9.443555-152.471703h26.861037c-0.976593 3.39437-1.21363 4.114963-0.730074 2.18074-0.483556 1.943704-1.21363 4.352-2.180741 7.262815-0.483556 8.713481-12.828444 12.344889-37.025185 10.894223 5.812148-2.427259 10.17363-9.197037 13.074963-20.337778z m4.361481 32.673185h-10.894222v58.083555h10.164148c6.769778 1.450667 9.91763-2.654815 9.434074-12.344888v-34.853926c0.483556-7.727407-2.427259-11.358815-8.704-10.884741z m-5.812148 35.574518v-27.591111h9.434074v27.591111c0 9.690074-4.608 13.795556-13.795555 12.344889 2.910815-2.417778 4.361481-6.532741 4.361481-12.344889zM906.42963 475.230815h-10.164149c-7.74637 0-12.591407 2.664296-14.525629 7.983407v-7.983407h-26.861037v84.224h26.861037v-7.983408c0.967111 5.319111 5.812148 7.983407 14.525629 7.983408h11.614815c15.483259 0.967111 22.983111-5.082074 22.509037-18.147556V494.838519c0.474074-14.042074-7.518815-20.574815-23.959703-19.607704z m-3.631408 67.517629c0 6.769778-3.631407 9.91763-10.894222 9.434075-5.328593 0-8.713481-2.427259-10.164148-7.262815V488.296296c1.924741-3.384889 5.319111-5.082074 10.164148-5.082074 7.262815-0.474074 10.894222 2.901333 10.894222 10.164148v49.370074zM1003.719111 414.236444c1.450667-13.065481-7.509333-19.114667-26.861037-18.147555h-60.984889c-9.197037 0-14.52563 3.877926-15.976296 11.614815v-11.614815h-31.222519v62.445037h31.222519v-9.434074c1.450667 5.328593 5.812148 7.74637 13.065481 7.262815h63.16563c19.351704 0.976593 28.558222-4.835556 27.591111-17.426963v-24.69926z m-45.748148 34.853926h-49.370074c-3.877926 0-6.788741-2.180741-8.713482-6.53274v-31.943111c1.450667-4.352 4.835556-6.532741 10.164149-6.532741h48.649481c9.680593-0.474074 14.26963 3.877926 13.795556 13.065481v17.426963c0.474074 10.647704-4.352 15.492741-14.52563 14.516148zM992.824889 475.230815h-9.443556c-7.74637 0-12.591407 2.427259-14.516148 7.262815v-7.262815h-26.861037v84.224h26.861037v-7.262815c0.967111 4.835556 5.812148 7.262815 14.516148 7.262815h11.614815c15.483259 0.967111 22.983111-5.082074 22.509037-18.147556V494.838519c0.483556-14.042074-7.736889-20.574815-24.680296-19.607704z m-2.901333 67.517629c0 6.769778-3.631407 9.91763-10.894223 9.434075-5.328593 0-8.713481-2.180741-10.164148-6.532741V488.296296c1.924741-3.384889 5.319111-5.082074 10.164148-5.082074 7.262815 0 10.894222 3.39437 10.894223 10.164148v49.370074z' fill='${(isStr.value ? colors.value : colors.value[1]) || 'rgb(255,255,255)'}' /%3E%3C/svg%3E${quot.value}); width: ${svgSize.value}px; height: ${svgSize.value}px;`
  })
</script>
